package com.mentaleye.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.mentaleye.dal.model.StudentAttendanceRecord;
import com.mentaleye.dal.model.StudentDisciplineRecord;

public interface StudentAttendanceRecordService {
	
    boolean insertByList(List<StudentAttendanceRecord> recordList);
    
    boolean updateRecord(StudentAttendanceRecord record);

    boolean updateRecordSelective(StudentAttendanceRecord record);
    
    StudentAttendanceRecord getBySelective(int studentId,Date writeTime);
    
    List<StudentAttendanceRecord> getByDisciplineRecordList(List<StudentDisciplineRecord> disciplineRecordList);
    
    List<StudentAttendanceRecord> getByDisciplineRecordListBySelective(List<Integer> studentIdList,List<Date> writeTimeList);
    
    List<Map<String,Object>> getListByMap(Map<String,Object> map);
    
    boolean deleteByRecordId(long recordId);
    
    boolean deleteByRecordIdList(List<Long> recordIdList);
    
    boolean deleteByWriteTime(Date writeTime);
    
    boolean deleteByDisciplineRecordList(List<StudentDisciplineRecord> disciplineRecordList);
}
